package com.workshop.service;

import com.workshop.entity.AArticle;
import com.workshop.entity.UUser;
import com.workshop.service.base.BaseService;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chengluqiang
 * @since 2019-04-13
 */
public interface IAArticleService extends BaseService<AArticle> {
    /**
     * 所有活动列表
     * @author chenluqiang
     * @param request 
     * @date 2019/4/13
     * @param [pageStart, pageTotal, type]
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws Exception 
     */
    Map<String,Object> allList(HttpServletRequest request, Long pageStart, Long pageTotal, Integer type) throws Exception;
    /**
     * 活动详情
     * @author chenluqiang
     * @param user 
     * @date 2019/4/14
     * @param [artId]
     * @return java.util.Map<java.lang.String,java.lang.Object>
     */
    Map<String,Object> detail(String artId, UUser user);

    Map<String,Object> add(String artJson);

    Map<String,Object> search(String keyword, Long pageStart, Long pageTotal);
    
	Map<String, Object> noteList(Long pageStart, Long pageTotal,UUser user);

    Map<String,Object> adminList(Long pageStart, Long pageTotal);

    Map<String,Object> pass(String artId,Integer status);

    Map<String,Object> join(String artId, UUser user);
}
